﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace Smart
{
    public class DbDepo : Tablo
    {
        public int recId { get; set; }
        public string Kodu { get; set; }
        public string Adi { get; set; }

        public DbDepo()
        {
            this.TabloAdi = "TBL_DEPO";
        }

        public override IEnumerable<string> BulkImport(int depoNo)
        {
            yield return "İndiriliyor...";
            string[] dt = BackOffice.Get.DepoList();
            yield return "indirildi.";
            foreach (string item in SqlCeClient.Get.importRows(this.TabloAdi, dt))
            {
                yield return item;
            }
            yield return "Tamamlandı";
        }
    }
}
